package com.xy.xymall.auth.feign;

import com.xy.common.utils.R;
import com.xy.xymall.auth.vo.SocialUser;
import com.xy.xymall.auth.vo.UserLoginVo;
import com.xy.xymall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author XY
 * @version 1.0
 * @date 2020/10/20 14:54
 * @Description
 */
@FeignClient("xymall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo registVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/oauth2/login")
    R oauthlogin(@RequestBody SocialUser socialUser) throws Exception;

}
